﻿using System.Windows;
using System.Windows.Controls;

namespace Mesuro.Graphing.PropertiesControls {
	public class PlotProperties : UserControl {

		//#region DP: Axes
		//public static readonly DependencyProperty AxesProperty = DependencyProperty.RegisterAttached( "Axes", typeof( Axes ), typeof( PlotProperties ), new FrameworkPropertyMetadata( null, FrameworkPropertyMetadataOptions.None, AxesChangedStatic ) );
		//public Axes Axes {
		//    get { return (Axes)GetValue( AxesProperty ); }
		//    set { SetValue( AxesProperty, value ); }
		//}
		//public static Axes GetAxes( DependencyObject element ) { return (Axes)element.GetValue( AxesProperty ); }
		//public static void SetAxes( DependencyObject element, Axes value ) { element.SetValue( AxesProperty, value ); }
		//private static void AxesChangedStatic( DependencyObject sender, DependencyPropertyChangedEventArgs e ) {
		//    SeriesProperties sp = sender as SeriesProperties;
		//    if (sp != null)
		//        sp.AxisSets = (e.NewValue is MultiAxes) ? ((MultiAxes)e.NewValue).AxisSetNames : new string[0];
		//}
		//#endregion

		#region DP: Plot
		public static readonly DependencyProperty PlotProperty = DependencyProperty.RegisterAttached( "Plot", typeof( Plot ), typeof( PlotProperties ), new FrameworkPropertyMetadata( null, FrameworkPropertyMetadataOptions.None, PlotChangedStatic ) );
		public Plot Plot {
			get { return (Plot)GetValue( PlotProperty ); }
			set { SetValue( PlotProperty, value ); }
		}
		public static Plot GetPlot( DependencyObject element ) { return (Plot)element.GetValue( PlotProperty ); }
		public static void SetPlot( DependencyObject element, Plot value ) { element.SetValue( PlotProperty, value ); }
		private static void PlotChangedStatic( DependencyObject sender, DependencyPropertyChangedEventArgs e ) { }
		#endregion

	}
}
